package com.lqh.studyproject.spring;

import org.springframework.cglib.proxy.Proxy;

/**
 * @ClassName SimpleAOP
 * @Description studyproject
 * @Author bgy-lqh
 * @Date 2020/5/15 18:04
 * @Version 无
 **/
public class SimpleAOP {
    public static Object getProxy(Object bean, Advice advice) {
        return Proxy.newProxyInstance(SimpleAOP.class.getClassLoader(),
                bean.getClass().getInterfaces(), advice);
    }
}